package org.example.model;

import javafx.beans.property.StringProperty;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @Author: wwy
 * @Date: 2020/12/3 13:55
 */
@Entity
@Table(name = "plan")
public class PlanEntity {
    @Id
    private long id;
    @Column(name = "plan_name")
    private String planName;

    @Column(name = "priority")
    private String priority ;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }

    @Override
    public String toString() {
        return "PlanEntity{" +
                "id=" + id +
                ", planName='" + planName + '\'' +
                ", priority='" + priority + '\'' +
                '}';
    }
}
